import Vue from 'vue'
import Vuex from 'vuex'
import axios from 'axios'

import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'

import VueAwesomeSwiper from 'vue-awesome-swiper'

// 图标css
import '@/assets/font/iconfont.css'

//markdown
import '@/assets/css/markdown.css'

// 饿了么组件
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// swiper css
import 'swiper/dist/css/swiper.css'

import '@/styles/public.scss' // global css
import E from 'wangeditor'

// 拖拽组件

import './utils/directives'
import './utils/noteDrag'


import App from './App'
import router from './router'
import store from './store'

//引入jquery
import $ from 'jquery'

// Internationalization
import { loadStyle } from './utils/util'

// localstorage
import localstorage from './utils/localStorage'

//download
import downloadfile from './utils/downloadfile'

// VueClipboard剪切板
import VueClipboard from 'vue-clipboard2'

import Clipboard from 'clipboard';



//登录控制
import '@/permission' // permission control

import global from '@/utils/global.js'
Vue.prototype.global = global

Vue.use(mavonEditor)
Vue.use(Vuex)
Vue.use(ElementUI)
Vue.use(VueAwesomeSwiper)
Vue.use(VueClipboard)
Vue.prototype.$http = axios
Vue.prototype.$localstorage = localstorage
Vue.prototype.$downloadfile = downloadfile
Vue.prototype.Clipboard = Clipboard;


// Vue.config.productionTip = false

// Vue.use(ElementUI, {
//     size: 'medium', // set element-ui default size
//     i18n: (key, value) => i18n.t(key, value)
// })


new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#jx-app')
